home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / tcl / tclm_1_0.lha / tclm-1.0 / MLIB / Makefile < prev    next >
Makefile  |  1993-08-16  |  1KB  |  59 lines

  1. # add -DMIDIPLAY to defines if you wish to compile in the ability to
  2. # play standard MIDI files.  This will only work on systems
  3. # equipped with a MIDI interface and systems with an interface
  4. # between tclm and the MIDI device.  Currently this is
  5. # only BSD/386 with a MPU-401 compatible and the new midi
  6. # driver.
  7. DEFS =
  8. # DEFS = -DMIDIPLAY
  9.  
  10. # add driver type.  This only matters if PLAYMIDI is defined
  11. # current choices are:
  12. # mpu_bsd386.o
  13. # DRIVER = mpu_bsd386.o
  14. DRIVER = 
  15.  
  16. # set RANLIB to ranlib if your system has it - otherwise set it to
  17. # true
  18. # RANLIB = true
  19. RANLIB = ranlib
  20.  
  21. # set INSTALL to be your install program
  22. # INSTALL = cp
  23. INSTALL = install
  24.  
  25. # set INSTALLEXECFLAG to be flags needed when installing
  26. # executables
  27. INSTALLEXECFLAG = -c -m 755
  28.  
  29. # set INSTALLTEXTFLAG to be flags needed when installing
  30. # text files
  31. INSTALLTEXTFLAG = -c -m 644
  32.  
  33. # set LIBDIR to the place where libmutil.a should go
  34. LIBDIR = /usr/local/lib
  35.  
  36. # set INCDIR to the place where the .h files should go
  37. INCDIR = /usr/local/include
  38.  
  39. MIDILIBOBJS = mfileutil.o $(DRIVER)
  40. MIDILIB = libmutil.a
  41.  
  42. CFLAGS = $(DEFS) -O -I.
  43. CC = cc
  44.  
  45. all: $(MIDILIB)
  46.  
  47. $(MIDILIB): $(MIDILIBOBJS)
  48.     rm -f $(MIDILIB)
  49.     ar cr $(MIDILIB) $(MIDILIBOBJS)
  50.     $(RANLIB) $(MIDILIB)
  51.  
  52. install: $(MIDILIB)
  53.     $(INSTALL) $(INSTALLTEXTFLAG) $(MIDILIB) $(LIBDIR)
  54.     $(RANLIB) $(LIBDIR)/$(MIDILIB)
  55.     $(INSTALL) $(INSTALLTEXTFLAG) mutil.h mdevice.h $(INCDIR)
  56.  
  57. clean:
  58.     rm -f $(MIDILIB) $(MIDILIBOBJS)
  59.